﻿@{
    ViewBag.Title = "Receiver";
    Layout = "~/Views/Shared/_Transfer_Menu.cshtml";
}
<h2>
    Receiver card</h2>
<div>
    @Html.Partial("_Cards")
</div>
@section cardsScript {
    <script type="text/javascript">
        $(function() {
             rowClickHandler = function () {
                $("#receiverMenuItem").removeClass('invisible');
                $(".selected").toggleClass("selected");
                $("#amountMenuItem").removeClass('invisible');
                $(this).toggleClass("selected");
                $("#toCardNumber").attr("value", $(".selected").find("td:first").text());
            };
        });
    </script>
}
